package com.happy.manage.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.happy.common.annotation.Excel;

/**
 * 微贴子带用户信息对象 microposts_with_user
 * 
 * @author ruoyi
 * @date 2024-12-27
 */
public class MicropostsWithUser extends Microposts
{
    private static final long serialVersionUID = 1L;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phonenumber;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 头像URL */
    @Excel(name = "头像URL")
    private String avatar;

    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    public void setPhonenumber(String phonenumber) 
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber() 
    {
        return phonenumber;
    }

    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("postId", getPostId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("phonenumber", getPhonenumber())
            .append("nickName", getNickName())
            .append("avatar", getAvatar())
            .append("title", getTitle())
            .append("content", getContent())
            .append("imageUrl1", getImageUrl1())
            .append("imageUrl2", getImageUrl2())
            .append("imageUrl3", getImageUrl3())
            .append("imageUrl4", getImageUrl4())
            .append("imageUrl5", getImageUrl5())
            .append("videoRef", getVideoRef())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}